package com.zb.code.controller;

import com.zb.result.Result;
import com.zb.service.ZjCodeLogService;
import com.zb.vo.CodeLogSelectVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Author WEN
 * @Date 2023/9/2 0002
 **/
@Api(tags = "编码操作日志类接口")
@RestController
@RequestMapping("/code/log")
public class ZjCodeLogController {
    @Resource
    private ZjCodeLogService codeLogService;

    @ApiOperation("根据编码ID查询编码操作记录列表")
    @PostMapping("/getList/{codeId}")
    public Result getList(@PathVariable @ApiParam(value = "编码ID", required = true) Long codeId, @RequestBody CodeLogSelectVo selectVo) {
        return Result.success("获取编码操作记录成功").data(codeLogService.getList(codeId, selectVo));
    }
}
